<div class="contenidofijo">
<div class="ciucontracts indexteacher">
		<div class="breadcrumb">
			<li class="divider">|</li>
			<li>
			<?php echo "Contratos asignados" ?>
			</li>
		</div>
    <div class="ciuusers form">	
	<table class="zebra" cellpadding="0" cellspacing="0">
	<thead>
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('contract_number');?></th>
                         <th><?php echo $this->Paginator->sort('document');?></th>
			<th><?php echo $this->Paginator->sort('ciuuser_id');?></th>
			<th><?php echo $this->Paginator->sort('contract_value');?></th>
			<th><?php echo $this->Paginator->sort('start_date');?></th>
			<th><?php echo $this->Paginator->sort('end_date');?></th>
			<th><?php echo $this->Paginator->sort('hours');?></th>
	</tr>
	</thead>
	<?php
	$i = 0;
	foreach ($ciucontracts as $ciucontract):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $ciucontract['Ciucontract']['id']; ?>&nbsp;</td>
		<td><?php echo $ciucontract['Ciucontract']['contract_number']; ?>&nbsp;</td>
		<td>
               <?php echo $ciucontract['Ciuuser']['document']; ?>&nbsp;
		</td>
        <td>
	           <?php echo $ciucontract['Ciuuser']['first_names']; ?>
               <?php echo $ciucontract['Ciuuser']['last_names']; ?>
        </td>
        <td><?php echo $ciucontract['Ciucontract']['contract_value']; ?>&nbsp;</td>
		<td><?php echo $ciucontract['Ciucontract']['start_date']; ?>&nbsp;</td>
		<td><?php echo $ciucontract['Ciucontract']['end_date']; ?>&nbsp;</td>
		<td><?php echo $ciucontract['Ciucontract']['hours']; ?>&nbsp;</td>
	</tr>
<?php endforeach; ?>
	</table>
	<div class="paginatorcounter">
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
</div>